package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_reform_content")
public class ReformContent extends Model<ReformContent> {

    public static final String ID = "id";
    public static final String OPEN_ID = "open_id";
    public static final String USER_ID = "user_id";
    public static final String USER_PHONE = "user_phone";
    public static final String USER_NAME = "user_name";
    public static final String UNION_ID = "union_id";
    public static final String JOB_POSITION = "job_position";
    public static final String SITE_ID = "site_id";
    public static final String SITE_NAME = "site_name";
    public static final String INTEGRAL = "integral";
    public static final String DANGER_TITLE = "danger_title";
    public static final String DANGER_PIC = "danger_pic";
    public static final String DANGER_DESC = "danger_desc";
    public static final String ENABLE_FLAG = "enable_flag";
    public static final String APPLY_FLAG = "apply_flag";
    public static final String FORM_FLAG = "form_flag";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String DANGER_LEVEL = "danger_level";
    public static final String REFORM_TERM = "reform_term";
    private static final long serialVersionUID = 1L;
    private Long id;
    /**
     * 提交人openId
     */
    private String openId;
    /**
     * 提交人userId
     */
    private Long userId;
    /**
     * 提交人电话号码
     */
    private String userPhone;
    /**
     * 提交人姓名
     */
    private String userName;
    private String unionId;
    /**
     * 工作职位
     */
    private String jobPosition;
    /**
     * 工地ID
     */
    private Long siteId;
    /**
     * 项目名称
     */
    private String siteName;
    /**
     * 积分
     */
    private Integer integral;
    /**
     * 隐患部位
     */
    private String dangerTitle;
    /**
     * 隐患图片
     */
    private String dangerPic;
    /**
     * 隐患描述
     */
    private String dangerDesc;
    /**
     * 是否启用(启用后放入需求池)  0-启用 1-不启用
     */
    private Integer enableFlag;
    /**
     * 审核状态 1-待审核 2-无需整改 3-待整改 4-待复查 5-已完成
     */
    private Integer applyFlag;
    /**
     * 1--安全隐患 2--质量隐患
     */
    private Integer formFlag;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
     * 隐患级别 1-一般 2-较大 3-重大 4-特大
     */
    private Integer dangerLevel;
    /**
     * 整改期限
     */
    private LocalDate reformTerm;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
